Centos 安装docker-compose
利用yum安装docker-compose
- 添加EPEL源
在Shell中运行以下命令,安装EPEL源:
yum install -y epel-release
- 安装python-pip
在Shell中运行以下命令,安装Python-pip软件包:
yum install -y python-pip
- 安装docker-compose
在Shell中运行以下命令,通过pip安装docker-compose:
pip install docker-compose
4.注意
如果安装过程中提示
Could not find a version that satisfies the requirement docker-compose (from versions: )
No matching distribution found for docker-compose
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
就执行命令pip install --upgrade pip 更新pip版本
5.验证是否安装成功
docker-compose -version
显示docker-compose version 1.18.0, build 8dd22a9表示安装成功